Optimal. Leaf size=272 \[ -\frac{2 b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d \tan (e+f x)}}{\sqrt{b c-a d}}\right )}{f \left (a^2+b^2\right ) (b c-a d)^{5/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{f \left (c^2+d^2\right )^2 (b c-a d)^2 \sqrt{c+d \tan (e+f x)}}+\frac{2 d^2}{3 f \left (c^2+d^2\right ) (b c-a d) (c+d \tan (e+f x))^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d}}\right )}{f (b+i a) (c-i d)^{5/2}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c+i d}}\right )}{f (-b+i a) (c+i d)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.42329, antiderivative size = 272, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.296, Rules used = {3569, 3649, 3653, 3539, 3537, 63, 208, 3634} \[ -\frac{2 b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d \tan (e+f x)}}{\sqrt{b c-a d}}\right )}{f \left (a^2+b^2\right ) (b c-a d)^{5/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{f \left (c^2+d^2\right )^2 (b c-a d)^2 \sqrt{c+d \tan (e+f x)}}+\frac{2 d^2}{3 f \left (c^2+d^2\right ) (b c-a d) (c+d \tan (e+f x))^{3/2}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d}}\right )}{f (b+i a) (c-i d)^{5/2}}-\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c+i d}}\right )}{f (-b+i a) (c+i d)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3569
Rule 3649
Rule 3653
Rule 3539
Rule 3537
Rule 63
Rule 208
Rule 3634
Rubi steps
\begin{align*} \int \frac{1}{(a+b \tan (e+f x)) (c+d \tan (e+f x))^{5/2}} \, dx &=\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}+\frac{2 \int \frac{-\frac{3}{2} \left (a c d-b \left (c^2+d^2\right )\right )-\frac{3}{2} d (b c-a d) \tan (e+f x)+\frac{3}{2} b d^2 \tan ^2(e+f x)}{(a+b \tan (e+f x)) (c+d \tan (e+f x))^{3/2}} \, dx}{3 (b c-a d) \left (c^2+d^2\right )}\\ &=\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}+\frac{4 \int \frac{-\frac{3}{4} \left (2 a b c^3 d-a^2 d^2 \left (c^2-d^2\right )-b^2 \left (c^2+d^2\right )^2\right )-\frac{3}{2} c d (b c-a d)^2 \tan (e+f x)-\frac{3}{4} b d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right ) \tan ^2(e+f x)}{(a+b \tan (e+f x)) \sqrt{c+d \tan (e+f x)}} \, dx}{3 (b c-a d)^2 \left (c^2+d^2\right )^2}\\ &=\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}+\frac{b^4 \int \frac{1+\tan ^2(e+f x)}{(a+b \tan (e+f x)) \sqrt{c+d \tan (e+f x)}} \, dx}{\left (a^2+b^2\right ) (b c-a d)^2}+\frac{4 \int \frac{-\frac{3}{4} (b c-a d)^2 \left (2 b c d-a \left (c^2-d^2\right )\right )-\frac{3}{4} (b c-a d)^2 \left (2 a c d+b \left (c^2-d^2\right )\right ) \tan (e+f x)}{\sqrt{c+d \tan (e+f x)}} \, dx}{3 \left (a^2+b^2\right ) (b c-a d)^2 \left (c^2+d^2\right )^2}\\ &=\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}+\frac{\int \frac{1+i \tan (e+f x)}{\sqrt{c+d \tan (e+f x)}} \, dx}{2 (a-i b) (c-i d)^2}+\frac{\int \frac{1-i \tan (e+f x)}{\sqrt{c+d \tan (e+f x)}} \, dx}{2 (a+i b) (c+i d)^2}+\frac{b^4 \operatorname{Subst}\left (\int \frac{1}{(a+b x) \sqrt{c+d x}} \, dx,x,\tan (e+f x)\right )}{\left (a^2+b^2\right ) (b c-a d)^2 f}\\ &=\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{c-i d x}} \, dx,x,i \tan (e+f x)\right )}{2 (i a+b) (c-i d)^2 f}+\frac{\operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{c+i d x}} \, dx,x,-i \tan (e+f x)\right )}{2 (i a-b) (c+i d)^2 f}+\frac{\left (2 b^4\right ) \operatorname{Subst}\left (\int \frac{1}{a-\frac{b c}{d}+\frac{b x^2}{d}} \, dx,x,\sqrt{c+d \tan (e+f x)}\right )}{\left (a^2+b^2\right ) d (b c-a d)^2 f}\\ &=-\frac{2 b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d \tan (e+f x)}}{\sqrt{b c-a d}}\right )}{\left (a^2+b^2\right ) (b c-a d)^{5/2} f}+\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{-1-\frac{i c}{d}+\frac{i x^2}{d}} \, dx,x,\sqrt{c+d \tan (e+f x)}\right )}{(a-i b) (c-i d)^2 d f}-\frac{\operatorname{Subst}\left (\int \frac{1}{-1+\frac{i c}{d}-\frac{i x^2}{d}} \, dx,x,\sqrt{c+d \tan (e+f x)}\right )}{(a+i b) (c+i d)^2 d f}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d}}\right )}{(i a+b) (c-i d)^{5/2} f}-\frac{\tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c+i d}}\right )}{(i a-b) (c+i d)^{5/2} f}-\frac{2 b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d \tan (e+f x)}}{\sqrt{b c-a d}}\right )}{\left (a^2+b^2\right ) (b c-a d)^{5/2} f}+\frac{2 d^2}{3 (b c-a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac{2 d^2 \left (2 a c d-b \left (3 c^2+d^2\right )\right )}{(b c-a d)^2 \left (c^2+d^2\right )^2 f \sqrt{c+d \tan (e+f x)}}\\ \end{align*}
Mathematica [A] time = 4.874, size = 323, normalized size = 1.19 \[ \frac{\frac{3 \left (-\frac{2 b^{7/2} \left (c^2+d^2\right )^2 \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d \tan (e+f x)}}{\sqrt{b c-a d}}\right )}{\sqrt{b c-a d}}+\frac{(b-i a) (c+i d)^2 (b c-a d)^2 \tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d}}\right )}{\sqrt{c-i d}}+\frac{(b+i a) (c-i d)^2 (b c-a d)^2 \tanh ^{-1}\left (\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{c+i d}}\right )}{\sqrt{c+i d}}\right )}{\left (a^2+b^2\right ) \left (c^2+d^2\right ) (a d-b c)}-\frac{6 d^2 \left (b \left (3 c^2+d^2\right )-2 a c d\right )}{\left (c^2+d^2\right ) (b c-a d) \sqrt{c+d \tan (e+f x)}}-\frac{2 d^2}{(c+d \tan (e+f x))^{3/2}}}{3 f \left (c^2+d^2\right ) (a d-b c)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.106, size = 13982, normalized size = 51.4 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (b \tan \left (f x + e\right ) + a\right )}{\left (d \tan \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]